package cn.iocoder.yudao.module.currency.controller.admin.rate.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 货币汇率分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ExchangeRatePageReqVO extends PageParam {

    @Schema(description = "基准货币", example = "CNY")
    private String baseCurrency;

    @Schema(description = "货币简称", example = "人民币")
    private String currencyName;

    @Schema(description = "货币编码", example = "CNY")
    private String currencyCode;

    @Schema(description = "货币符号", example = "¥")
    private String currencySymbol;

    @Schema(description = "汇率（货币1:US）", example = "7.2")
    private BigDecimal exchangeRate;

    @Schema(description = "地区编码")
    private String areaCode;

    @Schema(description = "地区简称", example = "中国")
    private String areaName;

    @Schema(description = "显示顺序", example = "1")
    private Integer currencySort;

    @Schema(description = "状态（0正常 1停用）", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "备注内容")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
